/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.edmo.fastener.domain;

import java.io.Serializable;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 *
 * @author obelog
 */
public class Supplier {
    
    private Long id;
    private String supplierCode;
    private String state;
    private String material;
    private String range;
    private int delivry;
    private int discount;
    private List<Order> orders;

    public Supplier() {
    }

    public Supplier(String supplierCode, String state, String material, String range, int delivry, int discount) {
        this.supplierCode = supplierCode;
        this.state = state;
        this.material = material;
        this.range = range;
        this.delivry = delivry;
        this.discount = discount;
    }

    public Supplier(Long id, String supplierCode, String state, List<Order> orders) {
        this.id = id;
        this.supplierCode = supplierCode;
        this.state = state;
        this.orders = orders;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<Order> getOrders() {
        return orders;
    }

    public void setOrders(List<Order> orders) {
        this.orders = orders;
    }
    
    public String getSupplierCode() {
        return supplierCode;
    }

    public void setSupplierCode(String supplierCode) {
        this.supplierCode = supplierCode;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public int getDelivry() {
        return delivry;
    }

    public void setDelivry(int delivry) {
        this.delivry = delivry;
    }

    public int getDiscount() {
        return discount;
    }

    public void setDiscount(int discount) {
        this.discount = discount;
    }
    
    
    
}
